package si.sp.socialnetwork;

import java.io.Serializable;
import java.util.ArrayList;


public class KrogiBean implements Serializable {

	private static final long serialVersionUID = 1L;

	private String krogi;

	public KrogiBean() {        
	}

	//katere kroge ima registrirana oseba oz. v katerih krogih ima prijatelje
	public String getKrogi() {
		int id = 1;	// set here id of currently logged in user	
		DatabaseBean db_bean = new DatabaseBean();
		ArrayList<String> circles = db_bean.getKrogiForUserID(id);

		krogi = "";
		for(String c : circles){
			krogi += "<option value=\""+c+"\">"+c+"</option> \n ";
		}
		return krogi;
	}    
}
